package com.migraine.service;
import com.migraine.model.Message;

import java.util.Date;
import java.util.List;

public interface MessageService {

    boolean insertMessage(int id,String sender, String receiver, String msg, Date date);

    boolean deleteMessage(int id);

    List<Integer> getMessageByName(String receiver);

    List<Integer> getAllId();

    List<Message> getMessageById(String id);

    Message selectMessageById(int id);

}
